<header>
    <nav class="navbar navbar-default navbar-static-top">
        <div class="container">
            <div class="navbar-header">
                <a class="navbar-brand" href="/">
                    <img alt="Brand" src="/public/static/home/static/img/logo.png">
                </a>
            </div>
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li>
                        <a href="/">首页<span class="sr-only">(current)</span></a>
                    </li>
                    {volist name="category" id="vo"}
                    <li>
                        <a href="{:url('home/'.$vo['catdir'].'/index',['catId'=>$vo['id']] )}">{$vo.catname}</a>
                    </li>
                    {/volist}
                </ul>
            </div>
        </div>
    </nav>
</header>